<template>
  <div>
    <div class="header">
      <div class="nav">
        <span class="nav1">
          <span class="nav1-l"></span>
          <span>添加广告</span>
        </span>
        <el-button class="nav2" @click="refresh()" size="small">
          <i class="el-icon-arrow-left"></i>
          <span>返回</span>
        </el-button>
      </div>
    </div>

    <div class="big_box">
      <span class="screen">添加广告</span>
    </div>

    <div class="box1">
      <el-form class="demo-ruleForm">
        <el-form-item label="广告名称:" prop="name">
          <el-input :style="'width:300px'"></el-input>
        </el-form-item>
        <el-form-item label="广告位置:" prop="region">
          <el-select placeholder="请选择">
            <el-option label="区域一" value="shanghai"></el-option>
            <el-option label="区域二" value="beijing"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="开始时间:" required>
          <el-form-item prop="date1">
            <el-date-picker type="date" placeholder="请选择日期" :style="'width:200px'"></el-date-picker>
          </el-form-item>
        </el-form-item>
        <el-form-item label="到期时间:" required>
          <el-form-item prop="date1">
            <el-date-picker type="date" placeholder="请选择日期" :style="'width:200px'"></el-date-picker>
          </el-form-item>
        </el-form-item>
        <el-form-item label="上线/下线:" prop="resource">
          <el-radio-group>
            <el-radio label="上线"></el-radio>
            <el-radio label="下线"></el-radio>
          </el-radio-group>
        </el-form-item>
        <el-form-item label="广告图片:" prop="name">
          <el-input :style="'width:300px'"></el-input>
        </el-form-item>
        <el-form-item label="广告连接:" prop="name">
          <el-input :style="'width:300px'"></el-input>
        </el-form-item>
        <el-form-item label="广告备注:" prop="desc">
          <el-input style="width:300px" placeholder="请输入内容"></el-input>
        </el-form-item>
        <el-form-item>
          <el-button type="primary">提交</el-button>
        </el-form-item>
      </el-form>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    refresh() {
      this.$router.go(-1)
    }
  }
}
</script>

<style lang="less" scoped>
.header {
  position: relative;
  width: 100%;
  height: 50px;
  background-color: #f3f3f3;
  border-bottom: 1px solid #eee;
  .nav {
    .nav1 {
      position: absolute;
      left: 120px;
      top: 25%;
      color: #af9999;
      .nav1-l {
        border-left: 3px solid #039aff;
        margin-right: 5px;
      }
    }
    .nav2 {
      position: absolute;
      right: 120px;
      top: 20%;
    }
  }
}
.big_box {
  width: 1135px;
  height: 50px;
  background-color: #f3f3f3;
  margin: 20px 120px 0 120px;
  border: 1px solid #eee;
  .screen {
    font-size: 12px;
    margin-left: 5px;
    line-height: 50px;
    padding: 0 20px;
    color: #666666;
  }
}
.box1 {
  width: 1135px;
  height: 600px;
  margin: 0 120px;
  border: 1px solid #eee;
  .demo-ruleForm {
    padding-left: 300px;
    padding-top: 50px;
  }
}
</style>
